$(document).ready(function(){
    $('.smile').click(function(){
        var smile;
        switch($(this).attr('id')) {
            case 'smile':
                smile = ":)";
                break;
            case 'wink':
                smile = ";)";
                break;
            case 'mad':
                smile = ":[";
                break;
            case 'cool':
                smile = "B)";
                break;
            case 'plez':
                smile = ":P";
                break;
            case 'excited':
                smile = "BP";
                break;
            case 'rofl':
                smile = ":O";
                break;
        }
        $('#comment_content').val($('#comment_content').val() + smile);
    });
    
});


